<extend name="Public/common" />
<block name="body">
<div class="page">
  <div class="fixed-bar">
        <include file="Public:usermenu" />
  </div>
  <div class="fixed-empty"></div>
	<form method="post" id="form1">
    <table class="table tb-type2">
      <thead>
        <tr class="space">
          <th colspan="15" class="nobg">列表</th>
        </tr>
        <tr class="thead">
          <th class="w24"></th>
          <th>登录名</th>
          <th>姓名</th>
          <th class="align-center">上次登录</th>
          <th class="align-center">登录次数</th>
          <th class="align-center">权限组</th>
          <th class="w108 align-center">操作</th>
        </tr>
      </thead>
      <tbody>
        <notempty name="list">
        <volist name="list" id="vo">
        <tr class="hover">
          <td>
          	<input type="checkbox" name='id[]' value="{$vo['user_id']}" class="checkitem">
          </td>
          <td>{$vo['user_name']}</td>
          <td>{$vo['real_name']}</td>
          <td class="align-center">{$vo['login_time']|time_format}</td>
          <td class="align-center">{$vo['logins']}</td>
          <td class="align-center">{$group[$vo['group_id']]}</td>
          <td class="align-center">
          	<a href="{:U('edit?id='.$vo['user_id'])}">编辑</a> | 
          	<a href="javascript:if(confirm('您确定要删除吗'))window.location = '{:U('delete?id='.$vo['user_id'])}';">删除</a>
          </td>
        </tr>
        </volist>
        <else />
        <tr class="no_data">
          <td colspan="10">没有符合条件的记录</td>
        </tr>
        </notempty>
      </tbody>
      <tfoot>
        <tr class="tfoot">
        <notempty name="page">
          <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
          <td colspan="16"><label for="checkallBottom">全选</label>
            &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn" onclick="if(confirm('您确定要删除吗?')){$('#form1').submit();}"><span>删除</span></a>
            <div class="pagination"> {$page} </div></td>
         <else />  
          <td colspan="16"></td>
         </notempty>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
</block>